ifneq (${KERNELRELEASE},)	
	obj-m := demo.o
else
	KDIR?=/usr/src/linux-headers-3.13.0-32-generic/
	PWD:=$(shell pwd)
default:
	${MAKE} -C $(KDIR) M=${PWD} modules
endif

.PHONY: clean
clean:
	rm -rf *.o *.depend .*.cmd *.ko *.mod.c .tmp_versions *.order *.symvers *.ko.unsigned
